package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.query.album.AlbumInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AlbumInfoMapper extends BaseMapper<AlbumInfo> {

    /**
     * 根据条件进行分页查询专辑列表数据
     * @param page
     * @param albumInfoQuery
     * @Param: 该注解就是显示的指定传递给mybtis的参数名称
     * @return
     */
    public abstract IPage<AlbumListVo> findUserAlbumPage(Page<AlbumListVo> page, @Param(value = "vo") AlbumInfoQuery albumInfoQuery);

}
